# append.py
# 元素的增加
jack = ['10000','Jack Ma',47]
jack.append("CEO")
print("jack list after append:",jack)

jack.insert(2,'male')
print("jack list after insert at position 2:",jack)

# 元素的删除
# del.py
jack = ['10000','Jack Ma','male',47,'CEO']
del jack[2]
print("jack list after del:",jack)

# pop（）
sTitle = jack.pop()
print("jack list after pop:",jack)
print("The popped element is:",sTitle)
# pop()函数执行，列表尾部元素被弹出，被弹出的元素作为返回值赋给变量sTitle

#romove（）
Jack = ['10000','Jack Ma','male',47,47,'CEO',47]
sGender = Jack.pop(2)
print("jack list after pop(2):",Jack)
print("The popped element is:",sGender)
Jack.remove(47)
print("jack list after romve:",Jack)
